package classfile

//B -> byte
//S -> short
//C -> char
//I -> int
//J -> long
//F -> float
//D -> double

/*
e.g.
void run() -> ()V
String toString() -> ()Ljava.lang.String
void main(String[] args) -> (Ljava.lang.String;)V
int max(float x, float y) -> (FF)I
int binarySearch(long[]a, long key) -> ([JJ)I


*/

type ConstantNameAndTypeInfo struct {
	tag              uint8
	name_index       uint16
	descriptor_index uint16
}

func (self *ConstantNameAndTypeInfo) readInfo(reader *ClassReader) {
	self.tag = 12
	self.name_index = reader.readUint16()
	self.descriptor_index = reader.readUint16()
}
